package cn.sxt.controller;

import cn.sxt.entities.CommonResult;
import cn.sxt.entities.Payment;
import cn.sxt.service.PaymentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/5/5 16:16
 */
@RestController
public class ConsumerController {
    // OpenFeign
    @Resource
    private PaymentService paymentService;

    @GetMapping(value = "/consumer/paymentSQL/{id}")
    public CommonResult<Payment> paymentSQL(@PathVariable("id") Long id) {
        return paymentService.paymentSQL(id);
    }
}
